//
//  UINavigationController+Extension.h
//  s.
//
//  Created by 谈虎啸 on 2022/9/14.
//  Copyright © 2022 J. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UINavigationController (Extension)
// push时弹出前面popCount个页面
- (void)jy_pushViewController:(UIViewController *)viewController
                     popCount:(NSInteger)popCount
                     animated:(BOOL)animated;

// push时候弹出前面所有页面(root不包括)
- (void)jy_popRootAndPushViewController:(UIViewController *)viewController
                               animated:(BOOL)animated;
/** pop到指定控制器*/
- (void)jy_popToDesVc:(NSString *)vcName;
/** pop掉cnt个控制器*/
- (void)jy_popToCnt:(NSInteger)cnt;
@end

NS_ASSUME_NONNULL_END
